<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><head>
<style type="text/css">
body,td,th {font-family: Times New Roman, Times, serif;
	font-size: 14px; color: #006699; background-color: #CCCCCC;
}
body {
	background-color: #669999;
}
#form1 #btnUpload {
	height: 22px;
}
#form1 #file {
	height: 22px;
}
.style1 {
	color: #FFFF33;
	font-size: 16px;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Upload file</title></head>
<body>
<?php
  if (isset($_POST['btnUpload'])){
  	  $what=in_array($_GET['what'],array('nhac','upload','quangcao','hinh','sanpham','Tin'))? $_GET['what']:'upload';
  	  include "uploadFunction.php"; //what= upload / nhac / quangcao / hinh
	  echo "<script>
	  			window.opener.GanGiaTri(\"$pathFile\");						
				window.close();
			  </script>
			 ";
	  exit();    
 }
?>

<p class="style1">Upload File</p>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
  <input type="file" name="file" id="file">
  <input type="submit" name="btnUpload" id="btnUpload" value="Upload">
</form>
<p>&nbsp; </p>
</body>
